package org.jeecg.modules.demo.allvipcard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.allvipcard.entity.AllVipcard;
import org.jeecg.modules.demo.couponmanagement.entity.CouponManagement;

import java.util.List;
import java.util.Map;

/**
 * @Description: 全部贵宾卡
 * @Author: jeecg-boot
 * @Date: 2022-01-11
 * @Version: V1.0
 */
public interface AllVipcardMapper extends BaseMapper<AllVipcard> {
    /**
     * 查询已下发贵宾卡数量
     *
     * @return
     */
    String getGrantedCardQty(@Param("storeId") String storeId);

    IPage<CouponManagement> queryCouponList(Page<CouponManagement> page, @Param("params") Map<String, Object> params);

    List<CouponManagement> listCouponsByVipId(@Param("vipId") String vipId, @Param("storeId") String storeId);
}
